home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Graphics / FMdriver / Install Software < prev    next >
Text File  |  2001-04-07  |  6KB  |  266 lines

  1. ; $VER: Installation script for FMdriver 1.10
  2. ; © Stefan Robl
  3. ; Created with GoldED 6.1.4
  4.  
  5.  
  6. ; check if we are running under correct OS
  7. (if (< (/ (getversion) 65536) 39) 
  8.     (
  9.         (abort "Incorrect OS version (software requires OS 39 or better )!")
  10.     )
  11. )
  12.  
  13. ; error handling
  14. (onerror
  15.     (if (> @ioerr 0)
  16.         (
  17.             (message
  18.                 ("An error has occurred during installation. Please check the log file to understand the error.")
  19.             )
  20.         )
  21.     )
  22.     (exit (quiet))
  23. )
  24.  
  25. (welcome)
  26.  
  27.  
  28. (set @default-dest
  29.     (askdir
  30.         (prompt "Please choose the installation path for the FMdriver programs:\n(a new folder named \"FrameMachine\" will be created there)")
  31.         (help "Installation creates a new folder \"FrameMachine\" for FMBaseConfig and FMTV in the path you specify.")
  32.         (default @default-dest)
  33.     )
  34. )
  35.  
  36. (set #fmdir (tackon @default-dest "FrameMachine"))
  37.  
  38.  
  39. (set #cputype
  40.     (askchoice
  41.         (prompt "Which CPU type(s) do you want to have supported?")
  42.         (help "Select the type of CPU you want to have supported.\nIf you have no PPC-accelerator card, 68k is your choice.\nIf you have a PPC-board, there is no need to install the 68k-versions, too.")
  43.         (choices
  44.             " 68k (68020 or better)"
  45.             " PPC (PPC603e or better, WarpOS required)"
  46.         )
  47.         (default 0)
  48.     )
  49. )
  50.  
  51. (set #fmfiles
  52.     (askoptions
  53.         (prompt "What files shall be installed?")
  54.         (help "FMdriver.guide: Online documentation (AmigaGuide format) for the FMdriver programs\n\nFMBaseConfig: Config program for FM display settings\n\nFMInit: Tool for the WB and CLI which initializes the FrameMachine\n\nFMTV: Watch TV on your Workbench!\n\nFMRecorder: Records and converts anims\n\nFMGrab: CLI tool for grabbing single images\n\nFMRecord/FMRecordDec: like FMRecorder, but for the CLI")
  55.         (choices
  56.             " FMdriver.guide - online documentation"
  57.             " FMBaseConfig"
  58.             " FMInit"
  59.             " FMTV"
  60.             " FMRecorder"
  61.             " FMGrab (CLI tool)"
  62.             " FMRecord / FM RecordDec (CLI tool)"
  63.         )
  64.         (default (+ 1 2 4 8 16 32 64))
  65.     )
  66. )
  67.  
  68. (if (= #fmfiles 0)
  69.   (abort "No FMdriver application(s) selected.\n\nInstallation aborted!")
  70. )
  71.  
  72.  
  73. (COMPLETE 0) ; makedir FrameMachine and FrameMachie/catalogs
  74. (makedir (#fmdir) (infos))
  75. (makedir (tackon #fmdir "catalogs"))
  76.  
  77.  
  78. (COMPLETE 10) ; wizard.library
  79. (copylib 
  80.     (prompt "Copying wizard.library to libs:")
  81.     (help "The \"wizard.library\" is needed for the applications using a GUI.\nIt is the free distributable part of Haage&Partners StormWIZARD system.")
  82.     (source "libs/wizard.library")
  83.     (dest "libs:")
  84.     (optional nofail force askuser)
  85.     (confirm)
  86. )
  87.  
  88. (COMPLETE 20) ; newframemachine.library
  89. (delete
  90.   ("libs:newframemachine.library")
  91. )
  92. (copyfiles
  93.     (prompt "Copying newframemachine.library to libs:")
  94.     (help "The \"newframemachine.library\" is needed for all applications\nwhich want to have access to the FrameMachine board.")
  95.     (source (if (= #cputype 0) ("libs/newframemachine.library_68k") ("libs/newframemachine.library_PPC")))
  96.     (dest "libs:")
  97.     (optional nofail force askuser)
  98.     (confirm)
  99. )
  100. (if (= #cputype 0)
  101.   (
  102.     (rename ("libs:newframemachine.library_68k") ("libs:newframemachine.library"))
  103.   )
  104.   (
  105.     (rename ("libs:newframemachine.library_PPC") ("libs:newframemachine.library"))
  106.   )
  107. )
  108. (run ("avail flush >NIL:"))
  109.  
  110. (COMPLETE 30) ; XILINX-files
  111. (copyfiles 
  112.     (prompt "Copying XILIX-files to DEVS:")
  113.     (help "These files are needed to configure the FrameMachinehardware.\nThey are loaded on driver-open into the reconfigurable Xilinx-Units on the FrameMachine.\nYou have to copy both files to \"DEVS:\", otherwise the driver cannot work!")
  114.     (source "devs/")
  115.     (dest "DEVS:")
  116.     (pattern "XILINX#?")
  117.     (optional nofail force askuser)
  118.     (confirm)
  119. )
  120.  
  121. (COMPLETE 40) ; catalogs
  122. (copyfiles
  123.     (prompt "Copying catalog files")
  124.     (help "Some programs of this package are localized.")
  125.     (source "catalogs/")
  126.     (dest (tackon #fmdir "catalogs"))
  127.     (all)
  128.     (optional nofail force askuser)
  129.     (confirm)
  130. )
  131.  
  132.  
  133.  
  134. (COMPLETE 50) ; FrameMachine.settings
  135. (copyfiles
  136.     (prompt "Copying FrameMachine.settings to DEVS:")
  137.     (help @copy-files)
  138.     (source "devs/FrameMachine.settings")
  139.     (newname "FrameMachine.settings")
  140.     (dest "DEVS:")
  141.     (optional nofail force)
  142.     (confirm)
  143. )
  144.  
  145.  
  146. (COMPLETE 60)
  147. (if (BITAND #fmfiles 1) ; FMdriver.guide
  148.   (
  149.     (copyfiles
  150.       (prompt "Copying Guide-documentation...")
  151.       (help @copy-files)
  152.       (source "FMdriver.guide")
  153.       (dest #fmdir)
  154.       (infos)
  155.       (optional nofail force)
  156.       (confirm)
  157.     )
  158.   )
  159. )
  160.  
  161.  
  162. (COMPLETE 70)
  163. (if (BITAND #fmfiles 2) ; FMBaseConfig
  164.   (
  165.     (copyfiles
  166.       (prompt "Copying FMBaseConfig...")
  167.       (help @copy-files)
  168.       (source "FMBaseConfig")
  169.       (dest #fmdir)
  170.       (infos)
  171.       (optional nofail force)
  172.       (confirm)
  173.     )
  174.   )
  175. )
  176.  
  177.  
  178. (COMPLETE 75)
  179. (if (BITAND #fmfiles 4) ; FMInit
  180.   (copyfiles
  181.     (prompt "Copying FMInit...")
  182.     (help @copy-files)
  183.     (source "FMInit")
  184.     (dest #fmdir)
  185.     (infos)
  186.     (optional nofail force)
  187.     (confirm)
  188.   )
  189. )
  190.  
  191.  
  192. (COMPLETE 80)
  193. (if (BITAND #fmfiles 8) ; FMTV
  194.   (
  195.     (copyfiles
  196.       (prompt "Copying FMTV...")
  197.       (help @copy-files)
  198.       (source "FMTV")
  199.       (dest #fmdir)
  200.       (infos)
  201.       (optional nofail force)
  202.       (confirm)
  203.     )
  204.   )
  205. )
  206.  
  207.  
  208. (COMPLETE 85)
  209. (if (BITAND #fmfiles 16) ; FMRecorder
  210.   (
  211.     (copyfiles
  212.       (prompt "Copying FMRecorder...")
  213.       (help @copy-files)
  214.       (source "FMRecorder")
  215.       (dest #fmdir)
  216.       (infos)
  217.       (optional nofail force)
  218.       (confirm)
  219.     )
  220.   )
  221. )
  222.  
  223.  
  224. (COMPLETE 90)
  225. (if (BITAND #fmfiles 32) ; FMGrab
  226.   (
  227.     (copyfiles
  228.       (prompt "Copying FMGrab...")
  229.       (help @copy-files)
  230.       (source "FMGrab")
  231.       (dest #fmdir)
  232.       (optional nofail force)
  233.       (confirm)
  234.     )
  235.   )
  236. )
  237.  
  238.  
  239. (COMPLETE 95)
  240. (if (BITAND #fmfiles 64) ; FMRecord
  241.   (
  242.     (copyfiles
  243.       (prompt "Copying FMRecord...")
  244.       (help @copy-files)
  245.       (source "FMRecord")
  246.       (dest #fmdir)
  247.       (optional nofail force)
  248.       (confirm)
  249.     )
  250.     (copyfiles
  251.       (prompt "Copying FMRecordDec...")
  252.       (help @copy-files)
  253.       (source "FMRecordDec")
  254.       (dest #fmdir)
  255.       (optional nofail force)
  256.       (confirm)
  257.     )
  258.   )
  259. )
  260.  
  261.  
  262. (COMPLETE 100)
  263.  
  264. (exit)
  265.  
  266.